package com.tsd.job.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.job.entity.SysTaskJob;
import com.tsd.job.entity.SysTaskJobExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysTaskJobMapper
 *
 * @author huawei
 * @date 2022/02/20 16:29:26
 */
public interface SysTaskJobMapper {

    SysTaskJob selectByPrimaryKey(Long id);

    SysTaskJobExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysTaskJob record);

    int insertSelective(SysTaskJob record);

    int insertList(@Param("list") List<SysTaskJobExt> list);

    int updateByPrimaryKey(SysTaskJob record);

    int updateByPrimaryKeySelective(SysTaskJob record);

    int updateList(@Param("list") List<SysTaskJobExt> list);

    List<SysTaskJobExt> selectByEntity(SysTaskJobExt record);

    List<SysTaskJobExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysTaskJobExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysTaskJobExt> selectByParams(@Param("params") Map<String, Object> params);

    List<SysTaskJobExt> selectAllEnable();
}